package org.vigor.lab.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * HelloController
 * <p>
 * </p>
 *
 * @author Vigor Yuan
 */
@RestController
@RequestMapping("/api/")
public class HelloController {

    @RequestMapping(value = "/say",method = RequestMethod.GET)
    public String say(@RequestParam(value = "word") String word) {
        return "hello " + word;
    }
}
